package com.huawei.appgallery.search.ui.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appgallery.search.ui.card.SearchCorrectCard;
import java.util.ArrayList;
import o.azb;
import o.cdr;
import o.cgz;
import o.cih;
import o.cuv.e;

public class SearchCorrectNode extends cdr {
    public SearchCorrectNode(Context context) {
        super(context, 1);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
        View view = (ViewGroup) LayoutInflater.from(this.ॱ).inflate(e.ˏ, null);
        azb.ˏ(view);
        cih searchCorrectCard = new SearchCorrectCard(this.ॱ);
        searchCorrectCard.ˏ(view);
        ˊ(searchCorrectCard);
        viewGroup.addView(view, layoutParams);
        return true;
    }

    public boolean ॱ() {
        return true;
    }

    public ArrayList<String> z_() {
        cgz ˊ = ˊ(0);
        if (ˊ instanceof SearchCorrectCard) {
            return ((SearchCorrectCard) ˊ).ˋ();
        }
        return null;
    }
}
